package com.blkj.iam.system.converter;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blkj.iam.system.model.entity.Tenant;
import com.blkj.iam.system.model.form.TenantForm;
import com.blkj.iam.system.model.vo.TenantPageVO;
import org.mapstruct.Mapper;

/**
 * 租户对象转换器
 *
 * @author haoxr
 * @since 2022/5/29
 */
@Mapper(componentModel = "spring")
public interface TenantConverter {

    Page<TenantPageVO> toPageVo(Page<Tenant> page);

    TenantForm toForm(Tenant tenant);

    Tenant toEntity(TenantForm tenantForm);
}